package com.wcs.exam.controller.admin.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * Admin-考试-个人-分页-请求参数
 * </p>
 *
 * @author wcs
 * @since 2025-03-31
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-考试-个人-分页-请求参数")
public class AdminExamDataPersonalPageReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "resource.exam.data.user.id.not.null")
    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long userId;

    @Schema(description = "考试类型(1：模拟考试、2：正式考试)")
    private Integer examType;

    @Schema(description = "考试名称")
    private String examName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始报名时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginRegistrationTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束报名时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endRegistrationTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始考试开考时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginExamStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束考试开考时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endExamStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "开始交卷时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime beginExamSubmitTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "结束交卷时间(格式：yyyy-MM-dd HH:mm)")
    private LocalDateTime endExamSubmitTime;

    @Schema(description = "当前页")
    private Long pageCurrent = 1L;

    @Schema(description = "每页条数")
    private Long pageSize = 20L;

}
